//
//  Plane.h
//  HKOCRuler
//
//  Created by lbxia on 2018/11/23.
//  Copyright © 2018年 lbx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ARKit/ARKit.h>
#import "PlaneDebugVisualization.h"

API_AVAILABLE(ios(11.0))
@interface Plane : SCNNode
@property (nonatomic, strong) ARPlaneAnchor *anchor;
@property (nonatomic, strong) SCNNode *occlusionNode;

@property (nonatomic, assign) CGFloat occlusionPlaneVerticalOffset;

@property (nonatomic, strong) PlaneDebugVisualization *debugVisualization;

- (instancetype)initWithAnchor:(ARPlaneAnchor*)anchor
        showDebugVisualization:(BOOL)showDebugVisualization;


- (void)updateWithAnchor:(ARPlaneAnchor*)anchor;

@end
